package common

import "github.com/go-playground/validator/v10"

// 校验器
func Validate(obj any) error {
	v := validator.New()
	//校验规则`  `
	return v.Struct(obj)
}
